package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class ResultAssignedEvent
		extends GwtEvent<RefreshEventHandler>
{

	public static final GwtEvent.Type<RefreshEventHandler>	TYPE	= new GwtEvent.Type<RefreshEventHandler>();
	private String											teamId;

	public ResultAssignedEvent(String teamId)
	{
		this.teamId = teamId;
	}

	@Override
	protected void dispatch(RefreshEventHandler handler)
	{
		handler.onRefresh(teamId);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<RefreshEventHandler> getAssociatedType()
	{
		return TYPE;
	}

}
